﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.Mvc;
using Microhard.Permission.Models;

namespace Microhard.WebUI.Models
{
    public class SelectData
    {
        public string ID { set; get; }
        public string Name { set; get; }
    }

    public enum CtrUsage
    { 
        ForQuery = 1,
        ForSelect = 2
    }

    public class AttriubteOfSelectList
    {
        public string CtrID { set; get; }
        //控件对应的实体字段名称，供自动绑定
        public string ParameterModelName { set; get; }
        public string ParameterPropertyIDName { set; get; }
        public string ParameterPropertyTxtName { set; get; }
        public bool IsMulitiplySelect { set; get; }
        public List<SelectData> Data { set; get; }
        public List<SelectData> Selected { set; get; }
        public string Parms { set; get; }
        public string DefaultSelectedText{ set; get; }
        public string DefaultSelectedValue { set; get; }
    }
}